#ifndef NEWPROJECTDIALOG_H
#define NEWPROJECTDIALOG_H

class NewProjectDialog : public QDialog
{
    Q_OBJECT
public:
    NewProjectDialog(QWidget *parent=0);
    bool isCRadioButtonChecked();
    bool isCPPRadioButtonChecked();
    bool isExecutableButtonChecked();
    bool isSharedButtonChecked();
    bool isStaticButtonChecked();
    QString projectPath();

private:
    QLabel *nameLabel;
    QLineEdit *nameLineEdit;
    QRadioButton *CRadioButton;
    QRadioButton *CPPRadioButton;
    QLabel *locationLabel;
    QLineEdit *locationLineEdit;
    QPushButton *browseButton;
    QDialogButtonBox *okCancelButtonBox;

    void okButtonClicked();
    void browseButtonClicked();
    bool isDirWritable(const QString& dir);
    void showEvent(QShowEvent *e) override;
};
#endif // NEWPROJECTDIALOG_H
